/*  
* Copyright 2013-2020 Smartdot Technologies Co., Ltd. All rights reserved.  * SMARTDOT PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.  * 
*/ package com.ssm.zhou.project.dto; 
 
/** 
 * <p>  
 *   
 * @author <a href="mailto:zhoujb@smartdot.com.cn">周竞博</a>  * @version 1.0, 2020年6月2日 
 */
public enum ProjectStateEnum {

    FAILED(0, "失败"), SUCCESS(1, "成功");
	private int code;
    private String message;
    ProjectStateEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }
	public int getCode() {
		return code;
	}
	public String getMessage() {
		return message;
	}
	public static ProjectStateEnum stateOf(int index) {
        for (ProjectStateEnum code : values()) {
            if (code.getCode() == index) {
                return code;
            }
        }
        return null;
	}
}
 